import WidgetUtil from '../utils/WidgetUtil.js';
import RouterUtil from '@/utils/RouterUtil.js';

export default {
	icon: [
		{
			id: '1',
			text: '打开',
			type: 'default',
			disabled: false,
			icon:'',
			linkId: '',
			action: ''
		},
		{
			type: 'divide'
		},
		{
			id: '2',
			text: '帮助',
			type: 'default',
			disabled: false,
			icon:'',
			linkId: '9999',
			action: ''
		}
	],
	wall: [
		{
			id: '2',
			text: '刷新',
			type: 'default',
			disabled: false,
			icon:'',
			linkId: '',
			action: ()=> {
				window.location.reload();
			}
		},
		{
			id: '3',
			text: '设置',
			type: 'default',
			icon:'system',
			disabled: false,
			linkId: '0001',
			action: ''
		},
		{
			type: 'divide'
		},
		{
			id: '4',
			text: '新建',
			type: 'default',
			disabled: false,
			linkId: '',
			sub:[
				{
					id: '41',
					text: '帮助',
					type: 'default',
					icon:'help',
					disabled: false,
					linkId: '9999',
				},
				{
					id: '42',
					text: '7',
					type: 'default',
					icon:'folder',
					disabled: false,
					linkId: '0007',
				}
			]
		},
		{
			type: 'divide'
		},
		{
			id: '5',
			text: '锁屏',
			type: 'default',
			icon:'lock',
			disabled: false,
			linkId: '',
			action: ()=> {
				RouterUtil.quit();
			}
		},
		{
			id: '6',
			text: WidgetUtil.isFullscreen() ? '退出全屏':'全屏',
			type: 'default',
			icon:'screen',
			disabled: false,
			linkId: '0001',
			action: function() {
				WidgetUtil.fullScreen();
			}
		},
		{
			id: '7',
			text: '帮助',
			type: 'default',
			disabled: false,
			icon:'help',
			linkId: '0000',
			action: ''
		},
		{
			id: '8',
			text: '关于',
			type: 'default',
			disabled: false,
			icon:'about',
			linkId: '0000',
			action: ''
		},
	]
}